package com.macro.mall.mapper;

import com.macro.mall.model.PmProduct;
import com.macro.mall.model.PmProductExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface PmProductMapper {
    long countByExample(PmProductExample example);

    int deleteByExample(PmProductExample example);

    int deleteByPrimaryKey(Long id);

    int insert(PmProduct record);

    int insertSelective(PmProduct record);

    List<PmProduct> selectByExample(PmProductExample example);

    PmProduct selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") PmProduct record, @Param("example") PmProductExample example);

    int updateByExample(@Param("record") PmProduct record, @Param("example") PmProductExample example);

    int updateByPrimaryKeySelective(PmProduct record);

    int updateByPrimaryKey(PmProduct record);

    List<Map<String,Object>> listPageByMixture(Map<String,Object> parmMap);
}